<template>
  <div class="wrap cart-box">
    <div class="headline">
      <yd-checkbox v-model="isCheckAll" shape="circle" color="#f00" :change="checkAll">全选</yd-checkbox>
      <h3>优购优品</h3>
    </div>
    <yd-checklist v-model="checklist4" color="#f00">
      <yd-checklist-item val="aaa">
        <div class="cart-item">
          <img src="/static/img/sf-1.jpg">
          <div class="detail">
            <h4 class="clamp">
              <a href="#">【黑卡96折】Apple 苹果 iPhone 7（A1660）移动联通电信4G手机 国内行货</a>
            </h4>
            <p class="spec ellipsis">Apple 苹果移动联通电信4G手机 国内行货国内行货</p>
            <div class="spinner">
              <span>¥<em>199.00</em></span>
              <yd-spinner v-model="spinner3" width="75px" height="24px"></yd-spinner>
            </div>
          </div>
        </div>
      </yd-checklist-item>
      <yd-checklist-item val="aaa">
        <div class="cart-item">
          <img src="/static/img/sf-1.jpg">
          <div class="detail">
            <h4 class="clamp">
              <a href="#">【黑卡96折】Apple 苹果 iPhone 7（A1660）移动联通电信4G手机 国内行货</a>
            </h4>
            <p class="spec ellipsis">Apple 苹果移动联通电信4G手机 国内行货国内行货</p>
            <div class="spinner">
              <span>¥<em>199.00</em></span>
              <yd-spinner v-model="spinner3" width="75px" height="24px"></yd-spinner>
            </div>
          </div>
        </div>
      </yd-checklist-item>
    </yd-checklist>
  </div>
</template>

<style lang="less" scoped>
.cart-box {
  margin-bottom: 10px;
  padding: 0 .3rem;
}
.headline {
  display: flex;
  align-items: center;
  height: 0.9rem;
  border-bottom: 1px solid #ccc;
  h3 {
    margin-left: 0.4rem;
    font-size: 15px;
    font-weight: normal;
  }
}
.cart-item {
  display: flex;
  img {
    margin-right: 10px;
    width: 1.8rem;
    height: 1.8rem;
  }
  .detail {
    flex-grow: 1;
    .spec {
      max-width: 4rem;
      line-height: .48rem;
      color: #81838e;
    }
    .spinner {
      display: flex;
      justify-content: space-between;
      line-height: 24px;
      span {
        color: #fc6248;
        em { 
          font-weight: bold;
          font-size: 16px;
        }
      }
    }
  }
}
</style>
